package ooday05;

public class Test {
    public static void main(String[] args) {
        Coordinate a=new Coordinate();
        a.setX(5);
        a.setY(8);
        System.out.println(a.getX()+","+a.getY());

        Seasons s=Seasons.SUMMER;
        switch(s){
            case SPRING:
                System.out.println("天气真"+s.getSeasonDescribe()+"出去踏青吧");
                break;
            case SUMMER:
                System.out.println("天气真"+s.getSeasonDescribe()+"晚上开空调吧");
                break;
            case AUTUMN:
                System.out.println("天气真"+s.getSeasonDescribe()+"去田里割麦子吧");
                break;
            case WINTER:
                System.out.println("天气真"+s.getSeasonDescribe()+"去烤火吧");
                break;
        }
        Seasons[] arr=Seasons.values();
        for(int i=0;i<arr.length;i++){
            System.out.println(arr[i].getSeasonName());
            System.out.println(arr[i].getSeasonDescribe());
        }



    }
}
